package com.ylr.base.common.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-10-10 20:00:36
 * className: NameValue 名字-值映射类
 * version: 1.0
 * description:
 */
@Getter
@Setter
@AllArgsConstructor
public class NameValue<T> {

    /**
     * 名字
     */
    private String name;

    /**
     * 值
     */
    private T value;

    @Override
    public String toString() {
        return "NameValue{" +
                "name='" + name + '\'' +
                ", value=" + value +
                '}';
    }
}
